package com.yiren.backstage.currency.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;

import org.greenrobot.greendao.annotation.Generated;

/**
 * @author xiaozan
 * @Date : 2022/7/15 下午2:29
 * @description:考场信息实体类
 */
@Entity(nameInDb = "site_entity", createInDb = false)
public class SiteEntity implements Serializable {

    private static final long serialVersionUID = -1592426748720089958L;

    /**
     * 主键 考场code
     */
    @Id
    private String siteCode;

    /**
     * 考场名称
     */
    private String siteName;

    /**
     * 考规版本
     */
    private float ruleVer;

    /**
     * 基础官方数据版本
     */
    private float baseVer;

    /**
     * 使用范围
     * 1：个别用户
     * 2：全部用户
     */
    private int useRange;

    /**
     * 考规状态
     * 0：停用
     * 1：启用
     */
    private int state;

    /**
     * 发布时间
     */
    private Long publishTime;

    /**
     * 合伙人修改数据
     */
    private String partneModifyVal;

    /**
     * 教练修改数据
     */
    private String coachModifyVal;

    /**
     * 是否可更新
     */
    @Transient
    private boolean update;

    /**
     * 更新详情
     */
    @Transient
    private String updateDetails;

    /**
     * 是否已下载
     */
    @Transient
    private boolean downLoad;

    /***考车公司*/
    @Transient
    private String c_name;

    /**
     * 共享人
     **/
    @Transient
    private String userId;

    /**
     * 更新模式
     */
    @Transient
    private int updateMode;

    /**
     * 最新的考规版本号
     */
    @Transient
    private float ruleVerLast;

    /**
     * 最新的基础版本号
     */
    @Transient
    private float baseVerLast;


    @Generated(hash = 325567040)
    public SiteEntity(String siteCode, String siteName, float ruleVer,
                      float baseVer, int useRange, int state, Long publishTime,
                      String partneModifyVal, String coachModifyVal) {
        this.siteCode = siteCode;
        this.siteName = siteName;
        this.ruleVer = ruleVer;
        this.baseVer = baseVer;
        this.useRange = useRange;
        this.state = state;
        this.publishTime = publishTime;
        this.partneModifyVal = partneModifyVal;
        this.coachModifyVal = coachModifyVal;
    }

    @Generated(hash = 921364970)
    public SiteEntity() {
    }


    public String getSiteCode() {
        return this.siteCode;
    }

    public void setSiteCode(String siteCode) {
        this.siteCode = siteCode;
    }

    public String getSiteName() {
        return this.siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public float getRuleVer() {
        return this.ruleVer;
    }

    public void setRuleVer(float ruleVer) {
        this.ruleVer = ruleVer;
    }

    public float getBaseVer() {
        return this.baseVer;
    }

    public void setBaseVer(float baseVer) {
        this.baseVer = baseVer;
    }

    public int getUseRange() {
        return this.useRange;
    }

    public void setUseRange(int useRange) {
        this.useRange = useRange;
    }

    public int getState() {
        return this.state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Long getPublishTime() {
        return this.publishTime;
    }

    public void setPublishTime(Long publishTime) {
        this.publishTime = publishTime;
    }

    public String getPartneModifyVal() {
        return this.partneModifyVal;
    }

    public void setPartneModifyVal(String partneModifyVal) {
        this.partneModifyVal = partneModifyVal;
    }

    public String getCoachModifyVal() {
        return this.coachModifyVal;
    }

    public void setCoachModifyVal(String coachModifyVal) {
        this.coachModifyVal = coachModifyVal;
    }

    public boolean isUpdate() {
        return update;
    }

    public void setUpdate(boolean update) {
        this.update = update;
    }

    public String getUpdateDetails() {
        return updateDetails;
    }

    public void setUpdateDetails(String updateDetails) {
        this.updateDetails = updateDetails;
    }

    public boolean isDownLoad() {
        return downLoad;
    }

    public void setDownLoad(boolean downLoad) {
        this.downLoad = downLoad;
    }

    public String getC_name() {
        return c_name;
    }

    public void setC_name(String c_name) {
        this.c_name = c_name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getUpdateMode() {
        return updateMode;
    }

    public void setUpdateMode(int updateMode) {
        this.updateMode = updateMode;
    }

    public float getRuleVerLast() {
        return ruleVerLast;
    }

    public void setRuleVerLast(float ruleVerLast) {
        this.ruleVerLast = ruleVerLast;
    }

    public float getBaseVerLast() {
        return baseVerLast;
    }

    public void setBaseVerLast(float baseVerLast) {
        this.baseVerLast = baseVerLast;
    }
}
